home *** CD-ROM | disk | FTP | other *** search
- ; $VER: Install.IconX 37.1 (28.7.94)
- ;
- ; This script installs the RShow Retina image viewer and its preferences editor
- ;
- FailAt 21
-
- Echo "RShow installation script for use with IconX"
- Echo "Copyright © 1994 by Michael Berg"
- Echo "All Rights Reserved."
- Echo ""
-
- Echo "Installing guifront.library..."
-
- SetEnv DoCopyLib YES
-
- Version >NIL: guifront.library 37
- If NOT WARN
- Echo " You already have: " NOLINE
- Version guifront.library
- Echo "" NOLINE
- Ask " Do you want to install version 37.2 of guifront.library?"
- If NOT WARN
- SetEnv DoCopyLib NO
- EndIf
- EndIf
-
- If $DoCopyLib EQ "YES"
- Echo " Copying guifront.library to your LIBS: ..."
- Copy /libs/guifront.library LIBS: QUIET
- Avail >NIL: FLUSH
- EndIf
-
- Echo " Do you want to install the preferences editor for"
- Echo " guifront.library as well? This isn't strictly necessary"
- Echo " in order to use RShowPrefs, but it does allow you"
- Ask " to customize the way its GUI looks [y/n]:"
- If WARN
- Echo "*N Installing GUIFront preference editor..."
-
- If EXISTS SYS:Prefs
- SetEnv TargetDir Sys:Prefs/
- Else
- SetEnv TargetDir Sys:
- Endif
-
- Lab SelectDir0
-
- Ask " Install in '$TargetDir'? [y/n]:"
- If WARN
- Echo " Copying /Prefs/GUIFront to '$TargetDir'..."
- Copy /Prefs/GUIFront $TargetDir QUIET
- Copy /Prefs/GUIFront.info $TargetDir QUIET
- Else
- Echo NOLINE " Enter other path, QUIT to skip installation: "
- /GetLine >ENV:TargetDir
- If NOT $TargetDir EQ "QUIT"
- Skip BACK SelectDir
- Else
- Echo " Installation skipped..."
- EndIf
- EndIf
- EndIf
-
- Echo "*NInstalling RShow preference editor..."
-
- If EXISTS SYS:Prefs
- SetEnv TargetDir Sys:Prefs/
- Else
- SetEnv TargetDir Sys:
- Endif
-
- Lab SelectDir
-
- Ask " Install in '$TargetDir'? [y/n]:"
- If WARN
- Echo " Copying /Prefs/RShowPrefs to '$TargetDir'..."
- Copy /Prefs/RShowPrefs $TargetDir QUIET
- Copy /Prefs/RShowPrefs.info $TargetDir QUIET
- Else
- Echo NOLINE " Enter other path, QUIT to skip installation: "
- /GetLine >ENV:TargetDir
- If NOT $TargetDir EQ "QUIT"
- Skip BACK SelectDir
- Else
- Echo " Installation skipped..."
- EndIf
- EndIf
-
- Echo "*NInstalling RShow Retina image viewer..."
-
- If EXISTS SYS:WBStartup
- SetEnv TargetDir Sys:WBStartup/
- Else
- SetEnv TargetDir Sys:
- Endif
-
- Lab SelectDir2
-
- Ask " Install in '$TargetDir'? [y/n]:"
- If WARN
- Echo " Copying /RShow to '"$TargetDir"'..."
- Copy /RShow $TargetDir QUIET
- Copy /RShow.info $TargetDir QUIET
- Else
- Echo NOLINE " Enter other path, QUIT to skip installation: "
- /GetLine >ENV:TargetDir
- If NOT $TargetDir EQ "QUIT"
- Skip BACK SelectDir2
- Else
- Echo " Installation skipped..."
- EndIf
- EndIf
-
- Echo ""
-
- If EXISTS Locale:Catalogs
- Echo "Do you wish to install the catalog files for the RShow"
- Echo "preferences editor and image viewer?"
- Ask "Kickstart 2.04 users should answer No, all others Yes: [y/n]:"
- If WARN
- Copy >NIL: Locale Locale: All QUIET
- Echo "Catalogs installed"
- EndIf
- Else
- Echo "(Catalog files not installed -- no Locale directory found)"
- EndIf
-
- Echo "*NInstallation complete. You may close the window now."
-